package com.ruoyi.proSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.proSystem.mapper.ProMarketingMapper;
import com.ruoyi.proSystem.domain.ProMarketing;
import com.ruoyi.proSystem.service.IProMarketingService;

/**
 * 营销设置Service业务层处理
 *
 * @author ruoyi
 * @date 2024-07-28
 */
@Service
public class ProMarketingServiceImpl implements IProMarketingService
{
    @Autowired
    private ProMarketingMapper proMarketingMapper;

    /**
     * 查询营销设置
     *
     * @param id 营销设置主键
     * @return 营销设置
     */
    @Override
    public ProMarketing selectProMarketingById(Integer id)
    {
        return proMarketingMapper.selectProMarketingById(id);
    }

    /**
     * 查询营销设置列表
     *
     * @param proMarketing 营销设置
     * @return 营销设置
     */
    @Override
    public List<ProMarketing> selectProMarketingList(ProMarketing proMarketing)
    {
        return proMarketingMapper.selectProMarketingList(proMarketing);
    }

    /**
     * 新增营销设置
     *
     * @param proMarketing 营销设置
     * @return 结果
     */
    @Override
    public int insertProMarketing(ProMarketing proMarketing)
    {
        return proMarketingMapper.insertProMarketing(proMarketing);
    }

    /**
     * 修改营销设置
     *
     * @param proMarketing 营销设置
     * @return 结果
     */
    @Override
    public int updateProMarketing(ProMarketing proMarketing)
    {
        return proMarketingMapper.updateProMarketing(proMarketing);
    }

    /**
     * 批量删除营销设置
     *
     * @param ids 需要删除的营销设置主键
     * @return 结果
     */
    @Override
    public int deleteProMarketingByIds(Integer[] ids)
    {
        return proMarketingMapper.deleteProMarketingByIds(ids);
    }

    /**
     * 删除营销设置信息
     *
     * @param id 营销设置主键
     * @return 结果
     */
    @Override
    public int deleteProMarketingById(Integer id)
    {
        return proMarketingMapper.deleteProMarketingById(id);
    }
}
